package com.ambulance.project.biz.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 月统计信息
 * </p>
 *
 * @author zr
 * @since 2020-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_statistics")
@ApiModel(value="Statistics对象", description="月统计信息")
public class Statistics extends Model<Statistics> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "日期")
    @TableField("day")
    private Integer day;

    @ApiModelProperty(value = "月份")
    @TableField("month")
    private Integer month;

    @ApiModelProperty(value = "年份")
    @TableField("year")
    private Integer year;

    @ApiModelProperty(value = "当日出车次数")
    @TableField("time")
    private Integer time;

    @ApiModelProperty(value = "当日出车时长")
    @TableField("avg_car")
    private BigDecimal avgCar;

    @ApiModelProperty(value = "当日救治总时长")
    @TableField("avg_base_help")
    private BigDecimal avgBaseHelp;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @TableField("create_time")
    private LocalDateTime createTime;


    @TableField("uid")
    private Integer uid;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
